----------------------------------Effect Variables--------------------------------------
EFFECT.effectID = 3 -- Whatever value you want as long as it doesn't override any other effects' IDs.
EFFECT.effectName = "Player Stun"
EFFECT.effectDuration = 5
EFFECT.effectCurrentStacks = 0
EFFECT.effectOldStacks = 0
EFFECT.effectMaxStacks = 1
EFFECT.effectFinished = false
---------------------------------------------------------------------------------------

function EFFECT:Init(pl, dur)
	
	local oldSpeed = pl.WalkSpeed
	pl:Freeze(true)
	timer.Simple(dur, function()
		pl:Freeze(false)
		self.RemoveMe = true
	end)
	local a = table.Copy(self)
	if(pl.Effects == nil)then
		pl.Effects = {self}
	else
		table.insert( pl.Effects, a)
	end
	return a
end

function EFFECT:AddStack(pl)

end

function EFFECT:Think(pl)

end

function EFFECT:Remove()
	self.RemoveMe = true
end

function EFFECT:Reset(pl)

end




